package ua.at.javac.server;

import java.util.List;

import org.jboss.logging.Logger;
import ua.at.javac.dao.Weather;
import ua.at.javac.entity.City;
import ua.at.javac.entity.Period;





public class Main {

	private static final Logger logger = Logger.getLogger(Main.class);
	
	public static void main(String[] args) {
		List<City> cities = new Weather().getCitys();
		System.out.println(cities);
		logger.info("Starting mass rate charge calculation...");
		
		List<Period> periods = new Weather().getPeriods();
		System.out.println(periods);

		//List<Site> sites = new Weather().getSites();
		//System.out.println(sites);


//		List<Journal> journal = new Weather().getWeather();
//		System.out.println(journal);
		
		/*
		Video vid = new Video();
		vid.setDescription("123");
			
		VideoDAO vDAO = new VideoDAO();
		System.out.println("The object is saved for id:" + vDAO.addVideo(vid));
		for(Video v : vDAO.getListVideo()) {
			System.out.println(v.getId());
			System.out.println(v.getDescription());
		}
		vid.setId(1L);
		vid.setDescription("986154154451");
		vDAO.update(vid);
		for(Video v : vDAO.getListVideo()) {
			System.out.println(v.getId());
			System.out.println(v.getDescription());
		}
		*/
	}
}
